﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FoodBookDetails.aspx.cs"
    Inherits="FoodBookDetails" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Chi Tiết Món Ăn</title>

    <script type="text/javascript">
    function GetRadWindow()  
    {  
        var oWindow = null;  
        if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)  
          
        return oWindow;  
    }  
    function CloseWnd()
    {
        GetRadWindow().close();
    }
    </script>
</head>
<body>
    <form id="form1" runat="server" style="font-size: 14px">
    <asp:ScriptManager ID="ScriptManager" runat="server" />
    <telerik:RadSkinManager ID="RadSkinManager" runat="server" Skin="Sunset">
    </telerik:RadSkinManager>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:EatDrinkConnectionString %>"
        SelectCommand="SELECT * FROM [FoodBook] WHERE ([FoodBookID] = @FoodBookID)">
        <SelectParameters>
            <asp:QueryStringParameter Name="FoodBookID" QueryStringField="FoodBookID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None"
        Skin="Office2007" Width="100%" OnNeedDataSource="RadGrid1_NeedDataSource" BorderStyle="None"
        ShowHeader="False">
        <HeaderContextMenu Skin="Office2007" EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </HeaderContextMenu>
        <MasterTableView DataKeyNames="FoodBookID">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridTemplateColumn>
                    <ItemTemplate>
                        <table width="100%">
                            <tr>
                                <td width="15%" align="left">
                                    <img src="Images/Foods/<%#Eval("Image") %>" alt="No Image" width="100px" height="100px" />
                                </td>
                                <td align="left">
                                    <h2>
                                        <font color="red">
                                            <b></b><%#Eval("Title") %></font></h2></b>
                                            <%#Eval("ShortDescription")%>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="font-size:13px" align="left">
                                    <%#Eval("LongDescription")%>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
        <FilterMenu Skin="Office2007" EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </FilterMenu>
    </telerik:RadGrid>
    <table>
        <tr>
            <td colspan="2">
                &nbsp;
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/email.gif" />
                <asp:Label ID="Label1" runat="server" Text="Ý Kiến Của Bạn Về Món Ăn" Font-Bold="True"
                    Font-Size="Large" ForeColor="#CC0000"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Họ Và Tên Bạn (<font color="red">*</font>)
            </td>
            <td>
                <asp:TextBox ID="txtUsername" runat="server" Width="200" />
            </td>
        </tr>
        <tr>
            <td>
                Email Của Bạn (<font color="red">*</font>)
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="200" />
            </td>
        </tr>
        <tr>
            <td>
                Nội Dung Góp Ý (<font color="red">*</font>)
            </td>
            <td>
                <asp:TextBox ID="txtNoiDung" runat="server" Height="100px" TextMode="MultiLine" Width="326px" />
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="btnGuiYKien" runat="server" Text="Gửi Ý Kiến" BackColor="#3366FF"
                    Font-Bold="True" Font-Size="Small" ForeColor="White" Width="100px" />
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnXoa" runat="server" Text="Xoá" BackColor="#3366FF" Font-Bold="True"
                    ForeColor="White" Height="25px" Width="100px" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
